<template>
	<view class="text" v-html="content">

	</view>
</template>

<script setup>
	import {
		ref
	} from 'vue';
	import {
		getCourseInfo
	} from '@/common/http.api.js';
	import {
		onLoad
	} from '@dcloudio/uni-app'
	const content = ref('')
	onLoad((option) => {
		console.log(option);
		getCourseInfo({
			id: option.id
		}).then(res => {
			uni.setNavigationBarTitle({
				title: res.data.title
			})
			content.value = res.data.content
		})
	})
</script>

<style lang="scss">
	.text {
		padding: 20rpx;
		font-size: 30rpx;
	}
</style>